import 'package:flutter/material.dart';
import 'package:flutter_snail/ui/style/snail_color.dart';
import 'package:flutter_snail/ui/style/snail_text_style.dart';

class CateSearchWidget extends StatelessWidget {
  const CateSearchWidget({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      width: double.infinity,
      height: 40,
      decoration: BoxDecoration(
        color: SnailColor.greyFA,
        borderRadius: BorderRadius.circular(20)
      ),
      alignment: Alignment.center,
      child: Row(
        mainAxisAlignment: MainAxisAlignment.center,
        children: [
          Image.asset('assets/images/icon/search.png', width: 16),
          const SizedBox(width: 5),
          const Text('搜索', style: SnailTextStyle.greyCD_14,)
        ],
      ),
    );
  }
}
